import { PrismaClient } from '@prisma/client';
import { Random } from 'mockjs';
import { create } from '../helper';
import { hash } from 'argon2';

export async function user() {
  create(20, async (prisma: PrismaClient) => {
    await prisma.user.create({
      data: {
        email: Random.email(),
        password: await hash('qwe123?'),
        username: Random.string(),
        mobile: Random.string(),
        age: 12,
        status: 1,
      },
    });
  });
}
